﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="StorageItems.aspx.cs" Inherits="EWMSWeb.Query.StorageItems" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .date2 {width:120px;}
</style>
<script type="text/javascript">


    $(document).ready(function () {
        $.datepicker.regional['zh-CN'] = {
            clearText: '清除',
            clearStatus: '清除已选日期',
            closeText: '关闭',
            closeStatus: '不改变当前选择',
            prevText: '<上月',
            prevStatus: '显示上月',
            prevBigText: '<<',
            prevBigStatus: '显示上一年',
            nextText: '下月>',
            nextStatus: '显示下月',
            nextBigText: '>>',
            nextBigStatus: '显示下一年',
            currentText: '今天',
            currentStatus: '显示本月',
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
            monthStatus: '选择月份',
            yearStatus: '选择年份',
            weekHeader: '周',
            weekStatus: '年内周次',
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayStatus: '设置 DD 为一周起始',
            dateStatus: '选择 m月 d日, DD',
            dateFormat: 'yy-mm-dd',
            firstDay: 1,
            initStatus: '请选择日期',
            isRTL: false
        };
        $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
        $(".date2").datepicker({
            "dateFormat": "yy-mm-dd"
        });


    });

 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <div>
               <table border="0" style="text-align:center;" cellpadding="0" cellspacing="1">
                <tr>
                    <td style="width:50px;">
                        归属地
                    </td>
                    <td style="width:80px; text-align:left; padding-left:5px;">
                        <asp:DropDownList ID="dropBcity"  CssClass="ddlBelong" runat="server" Width="80px">
                            <asp:ListItem Text="上海" Value="上海"></asp:ListItem>
                            <asp:ListItem Text="北京" Value="北京"></asp:ListItem>
                            <asp:ListItem Text="广州" Value="广州"></asp:ListItem>
                            <asp:ListItem Text="苏州" Value="苏州"></asp:ListItem>
                            <asp:ListItem Text="无" Value="" Selected="True"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                   
                     <td style="width:50px;">
                        处理地
                    </td>
                    <td>
                        <asp:DropDownList ID="dropGcity" runat="server" CssClass="ddlGraphic" Width="80px">
                            <asp:ListItem Text="上海" Value="上海"></asp:ListItem>
                            <asp:ListItem Text="北京" Value="北京"></asp:ListItem>
                            <asp:ListItem Text="广州" Value="广州"></asp:ListItem>
                            <asp:ListItem Text="苏州" Value="苏州"></asp:ListItem>
                            <asp:ListItem Text="无" Value="" Selected="True"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                  
             
                    <td>
                       查询日期
                    </td>
                    <td>
                        <asp:TextBox ID="txtDate" runat="server"  CssClass="date2"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;时间：
                        &nbsp;<asp:TextBox ID="txtHour" CssClass="txtHour" runat="server" Width="20px" Text="23"></asp:TextBox>时
                        &nbsp;<asp:TextBox ID="txtMinute" CssClass="txtMinute"  runat="server" Width="20px" Text="59"></asp:TextBox>分
                        &nbsp;<asp:TextBox ID="txtSecond" CssClass="txtSecond"  runat="server" Width="20px" Text="59"></asp:TextBox>秒
                        &nbsp;&nbsp;
                    </td>
                   

                    <td>
                         <asp:Button ID="btnQuery" runat="server" Width="40" Text="查询" 
                             onclick="btnQuery_Click" />
                        <%--<input type="button" value="查询" id="btnSearch" />--%>
                    </td>
                    <td>
                       <asp:Button ID="btnExport" runat="server" Width="40" Text="导出" 
                            onclick="btnExport_Click" />
                    </td>
                </tr>
            </table>
</div>
<table id="tab_1" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<thead>
<tr>
    <th>序号</th>
    <th>归属地</th>
    <th>处理地</th>
    <th>项目编号</th>
    <th>项目名称</th>
    <th>Load</th>
    <th>客户</th>
    <th>客户简称</th>
    <th>财务编码</th>
    <th>物品编码</th>
    <th>物品名称</th>
    <th>毛重</th>
    <th>皮1</th>
    <th>皮2</th>
    <th>净重</th>
    <th>废物编号</th>
    <th>废物名称</th>
    <th>箱号</th>
    <th>条码</th>
    <th>入库日期</th>
    <th>库存类型</th>
    <th>财务结算月</th>
    <th>锁定状态</th>

  
</tr>
</thead>
<tbody>
<asp:Repeater ID="rept" runat="server">
    <ItemTemplate>
    <tr>
        <td><%# Eval("RowNo")%></td>
        <td><%# Eval("bcity")%></td>
        <td><%# Eval("gcity")%></td>
        <td><%# Eval("projectcode")%></td>
        <td><%# Eval("projectname")%></td>
        <td><%# Eval("load")%></td>
        <td><%# Eval("cumname")%></td>
        <td><%# Eval("cumshortname")%></td>
        <td><%# Eval("bussCode")%></td>
        <td><%# Eval("goodscode")%></td>
        <td><%# Eval("goodsname")%></td>
        <td><%# Eval("gwt")%></td>
        <td><%# Eval("tare1")%></td>
        <td><%# Eval("tare2")%></td>
        <td><%# Eval("nwt")%></td>
        <td><%# Eval("rubcode")%></td>
        <td><%# Eval("rubname")%></td>
        <td><%# Eval("boxno")%></td>
        <td><%# Eval("barcodevalue")%></td>
        <td><%# Eval("insdate")%></td>
        <td><%# Eval("SType")%></td>
        <td><%# Eval("clearingmonth")%></td>
        <td><%# Eval("lockstatus")%></td>
       
    </tr> 
    </ItemTemplate>
    </asp:Repeater>
</tbody>
</table>
  <webdiyer:aspnetpager id="page1" runat="server" horizontalalign="Center"  PagingButtonSpacing="0" NumericButtonCount="8" onpagechanged="AspNetPager1_PageChanged"
        width="100%"  PageIndexBoxStyle="width:19px" FirstPageText="【首页】" LastPageText="【尾页】" NextPageText="【后页】" PrevPageText="【前页】" NumericButtonTextFormatString="【{0}】"
        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到第"  CustomInfoHTML="Page  <font color='red'><b>%CurrentPageIndex%</b></font> of  %PageCount%&nbsp;&nbsp;Order %StartRecordIndex%-%EndRecordIndex%"></webdiyer:aspnetpager>
 

<script type="text/javascript">

//    $(document).ready(function () {

//        $('#tab_1').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
//            "bJQueryUI": true,
//            "sPaginationType": "full_numbers",
//            'bPaginate': true,
//            "bProcessing": true,
//            "iDisplayLength": 10,
//            "bSort": true,

//            "aaSorting": [[0, "asc"]]
//        });

//        var bcity = "";
//        var gcity = "";
//        var enddate = "";
//        var mtable = $('#tab_1').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
//            "bJQueryUI": true,
//            "sPaginationType": "full_numbers",
//            'bPaginate': true,
//            "bProcessing": true,
//            "iDisplayLength": 25,
//            "bDestory": true,
//            "columns": [
//                 { "data": "rowno" },
//                 { "data": "bcity" },
//                 { "data": "gcity" },
//                 { "data": "projectcode" },
//                 { "data": "projectname" },
//                 { "data": "load" },
//                 { "data": "cumname" },
//                 { "data": "cumshortname" },
//                 { "data": "bussCode" },
//                 { "data": "goodscode" },
//                 { "data": "goodsname" },
//                 { "data": "gwt" },
//                 { "data": "tare1" },
//                 { "data": "tare2" },
//                 { "data": "nwt" },
//                 { "data": "rubcode" },
//                 { "data": "rubname" },
//                 { "data": "boxno" },
//                 { "data": "barcodevalue" },
//                 { "data": "insdate" },
//                 { "data": "SType" },
//                 { "data": "clearingmonth" },
//                 { "data": "lockstatus" }
//             ],
//            "sAjaxSource": "/ashx/pageJuqery.ashx?pagetype=items&enddate=2012-01-01&bcity=&gcity=",
//            "bServerSide": true
//        });

//        $('#btnSearch').click(function () {

//            bcity = $(".ddlBelong").val();
//            gcity = $(".ddlBelong").val();
//            if ($(".date2").val() == "") {
//                alert("请输入时间");
//            }
//            else {
//                enddate = $(".date2").val() + " " + $(".txtHour").val() + ":" + $(".txtMinute").val() + ":" + $(".txtSecond").val();
//                mtable.fnReloadAjax("/ashx/pageJuqery.ashx?pagetype=items&bcity=" + bcity + "&gcity=" + gcity + "&enddate="+enddate);
//            }
//        });

    //});     
 </script>
</asp:Content>
